﻿using System;

class GreaterNumber
{
    static void Main()
    {
        //Exercise 5.
        //Write a program that gets two numbers from the console and prints the greater of them. Don’t use if statements.

        Console.Write("Enter the first number:  ");
        double firstNumber = double.Parse(Console.ReadLine());
        Console.Write("Enter the second number:  ");
        double secondNumber = double.Parse(Console.ReadLine());

        Console.WriteLine();
        Console.WriteLine("The greater number is  {0}", Math.Max(firstNumber, secondNumber));
        Console.WriteLine();
    }
}

